﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void BtnRemove_Click(object sender, EventArgs e)
    {
        //使用Remove删除字符串
        //StringBuilder StrNew = new StringBuilder("1234567");
        StringBuilder StrNew = new StringBuilder(LblRemoveStr.Text);
    
        Int32 StrS1 = Convert.ToInt32(this.LblS1.Text);
        Int32 StrS2 = Convert.ToInt32(this.LblS2.Text);
        StrNew.Remove(StrS1, StrS2);
        this.LblNewStr.Text=StrNew.ToString();
    }
}
